package com.system.provider;

import com.am.ui.grid.AbstractBaseGridProvider;
import com.system.uitls.SearchFilter;
import java.util.Map;

public class DiseaseLeaveProvider extends AbstractBaseGridProvider
{
  public String generateSql(Map<String, Object> map)
  {
    StringBuffer sf = new StringBuffer("SELECT t1.person_name,t1.user_name,t2.create_time,t2.sick,t2.days FROM sys_patient_record t1,sys_diseaseLeave t2 WHERE t1.person_id=:personId AND t1.id=t2.record_id AND t1.status='7'");

    sf.append(SearchFilter.getSearchSql(map, null));

    sf.append(" ORDER BY create_time DESC");
    setParamMap(map);
    return sf.toString();
  }
}